<admintpl file="header" />
</head>
<body class="J_scroll_fixed">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#" target="_self">渠道充值记录</a></li>
            <!--<li><a href="{:U('Agent/Agent/add')}" target="_self">添加渠道</a></li>-->
        </ul>
        <form class="well form-search" method="get" action="{:U('Tui/Agent/chargeRecord')}">
            <div class="search_type cc mb10">
                <div class="mb10">
                    <span class="mr20">
                        
                        玩家帐号：
                        {$mem_select_txt}
                        代理帐号：
                        {$agent_select_txt}
                        时间:
                        {$time_choose_txt}
                        <input type="submit" class="btn btn-primary" value="搜索" />
                        <button style="float:right;" class="export_data_as_excel">导出数据为EXCEL文件</button>
                        <script>
                            $(".export_data_as_excel").click(function(){
                                var url="{:U('Tui/Agent/export','','')}/cr";
                                window.open(url);
                            });
                        </script>
                    </span>
                </div>
            </div>
        </form>

        <form class="js-ajax-form" action="" method="post">
            <table class="table table-hover table-bordered table-list">
                <thead>
                    <tr>
                        <th width="20">ID</th>       
                        
                        <th width="30">订单号</th>                                                
                        <th width="80">时间</th>
                        
                        <th width="40">代理帐号</th>
                        <th width="50">充值金额</th>
                        <th width="60">获得游戏币</th>
                        
                        <th width="50">充值游戏</th>
                        <th width="40">充值玩家</th>
                        <th width="40">折扣</th>                                                
                        
                        <th width="50">充值方式</th>
                        <th width="40">订单状态</th>
                        
                    </tr>
                </thead>
                <tr>
                        <th style='color:#f00'>汇总</th>
                        <th style='color:#00f'>--</th>
                        <th style='color:#00f'>--</th>
                        <th style='color:#00f'>--</th>
                        
                        <th style='color:#f00'>{$sumitems[0]['sum_money']}</th>
                        <th style='color:#f00'>{$sumitems[0]['sum_cnt']}</th>
                        
                        <th style='color:#00f'>--</th>
                        <th style='color:#00f'>--</th>
                        <th style='color:#00f'>--</th>
                        
                        <th style='color:#00f'>--</th>
                        <th style='color:#00f'>--</th>
                        
                </tr>
                <foreach name="items" item="vo">
                    <tr>
                        <td>{$vo.id}</td>                        
                        <td>{$vo.order_id}</td>
                        <td><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>                       
                        <td>{$vo.user_login}</td>
                        
                        <td>{$vo.money}</td>
                        <td>{$vo.gm_cnt}</td>
                        
                        <td>{$vo.gamename}</td>
                        <td>{$vo.memname}</td>
                        <td>{$vo.discount}</td>
                        <td>
                            <switch name="vo.payway">
                                <case value="balance">账户余额</case>
                                <case value="unionpay">银联</case>
                                <case value="zfb">支付宝</case>
                                <case value="alipay">支付宝</case>
                                <case value="ptb">游戏币</case>
                                <default />未知
                            </switch>
                        </td>
                        <td>
                            <switch name="vo.status">
                                <case value="1">待支付</case>
                                <case value="2">支付成功</case>
                                <case value="3">支付失败</case>
                            </switch>
                        </td>
                                    
                    </tr>
                </foreach>				
            </table>
            <div class="pagination">{$Page}</div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>